package com.xwj;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * Created by thinkjoy on 2017/7/7.
 */
@SpringBootApplication
@ServletComponentScan
@EnableScheduling //启动定时器
@EnableCaching  //启动缓存
@EnableTransactionManagement //开启事务支持
@EnableAsync //开启异步请求
public class Application {
    public static void main(String[] args) {
        SpringApplication.run(Application.class, args);
    }
}
